package com.itheima.sh.n_singleinstance;

public class Test01 {
    //目标：掌握单例设计模式的写法。
    public static void main(String[] args) {
        A a1 = A.getObject();
        A a2 = A.getObject();

        System.out.println(a1);
        System.out.println(a2);
    }
}
